#include "ISerializable.hpp"

std::ostream& operator <<(std::ostream &out,
    const utils::ISerializable &object) {
  out << object.Serialize();
  return out;
}

std::istream& operator >>(std::istream &in, utils::ISerializable &object) {
  std::string data;

  in >> data;
  object.Deserialize(data);
  return in;
}
